package config

import (
	"log"

	"github.com/spf13/viper"
)

var Vip *viper.Viper

func init() {
	Vip = viper.New()
	Vip.SetConfigName("config")
	//Vip.SetConfigFile("./config/config.yaml")
	Vip.SetConfigType("yaml")
	Vip.AddConfigPath("./config")
	err := Vip.ReadInConfig()
	if err != nil {
		log.Print(err)
		panic("cannot load config from ")
	}
}